#!/bin/bash

cur_dir=`pwd`
docker stop redis
docker rm redis

#wget http://download.redis.io/releases/redis-2.8.4.tar.gz

docker run -itd -p 6379:6379 --name redis -v ${cur_dir}/data:/data -v ${cur_dir}/redis.conf:/etc/redis/redis_default.conf hub.c.163.com/public/redis:2.8.4
#docker run -itd -p 6379:6379 --name redis -v ${cur_dir}/data:/data hub.c.163.com/public/redis:2.8.4


##
# telnet localhost 6379
# info
# set a b
# get a
# quit
